package com.itheima01;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class Test01 {
    public static void main(String[] args) throws IOException {

        ClassLoader systemClassLoader = ClassLoader.getSystemClassLoader();

        InputStream stream=systemClassLoader.getResourceAsStream("a.properties");

        Properties properties=new Properties();

        properties.load(stream);

        properties.forEach((k,v)->{

            System.out.println(k+"---"+v);
        });
    }
}
